Current Location: Home> Function Categories> cosh

cosh

Hyperbolic cosine
Name:cosh
Category:math
Programming Language:php
One-line Description:Hyperbolic cosine.

Definition and usage

cosh() function returns the hyperbolic cosine of a number.

Example

In this example, we will return hyperbolic cosines of different numbers:

 <?php
echo ( cosh ( 3 ) ;
echo ( cosh ( - 3 ) ;
echo ( cosh ( 0 ) ;
echo ( cosh ( M_PI ) ;
echo ( cosh ( 2 * M_PI ) ) ;
?>

Try it yourself

grammar

 cosh ( x )
parameter describe
x Required. A number.

illustrate

Returns the hyperbolic cosine value of x , defined as (exp(arg) + exp(-arg))/2 .

Similar Functions
  • Returns the remainder of the floating point number of division fmod

    fmod

    Returnstheremaindero
  • Convert octal to decimal octdec

    octdec

    Convertoctaltodecima
  • Convert decimal to hexadecimal dechex

    dechex

    Convertdecimaltohexa
  • Combined linear congruent generator lcg_value

    lcg_value

    Combinedlinearcongru
  • Find the maximum value max

    max

    Findthemaximumvalue
  • Arctangle of two parameters atan2

    atan2

    Arctangleoftwoparame
  • Ancient sine asin

    asin

    Ancientsine
  • Logarithm with base 10 log10

    log10

    Logarithmwithbase10
Popular Articles